#!/usr/bin/env bash
remoteip=$(ping ailab.cc -c 1|grep from|awk  '{print $4}')
nowip=$(curl -s http://rffan.com/getip.php)
echo $remoteip
echo $nowip
if [ "$remoteip" == "$nowip" ]; then
    echo "IP相同不做任何操作"
else
    /usr/bin/python /root/python/autocdns.py
fi